package org.pvt.model;

import org.jetbrains.annotations.NotNull;

import java.util.HashSet;
import java.util.Set;

/**
 * @author Pavel Talanov
 */
public abstract class HasName extends Model {

    public static final String NAME = "name";

    /*package*/ HasName() {
    }

    @Override
    @NotNull
    protected Set<Field> getFields() {
        Set<Field> fields = new HashSet<Field>(super.getFields());
        fields.add(new Field(NAME, "TEXT"));
        return fields;
    }
}
